package org.example;

import org.example.common.Url;
import org.example.protocol.HttpServer;
import org.example.register.LocalRegister;
import org.example.register.MapRegister;

import java.util.Arrays;

public class Provider {

    public static void main(String[] args) {
        //本地注册
        LocalRegister.regist(HelloService.class.getName(),"1.0", HelloServiceImpl.class);
        //注册中心注册
        Url url = new Url("localhost",8080);
        MapRegister.register(HelloService.class.getName(),url);


        //通过网络请求 用某个东西
        HttpServer httpServer = new HttpServer() ;
        httpServer.start("localhost",8080);
    }




}
